package com.ruoci.redis.response;

/**
 * @Author yang
 * 响应枚举类
 **/
public enum ResponseCode {


    /**
     * 请求成功
     */
    SUCCESS(1,"请求成功!"),

    /**
     * 请求失败
     */
    FAILURE(0,"请求失败"),

    /**
     * 请求过于频繁
     */
    REQUEST_LIMIT(1004,"请求过于频繁,请稍后再试!");

    private final Integer code;

    private final String message;

    ResponseCode(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


}
